package com.newenergy.wisehome.data.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by dell on 2016/11/29.
 */

@DatabaseTable(tableName = "tb_icon")
public class Icon {
    @DatabaseField(generatedId = true)
    private int id;
    @DatabaseField(columnName = "iconName")
    private String iconName;
    @DatabaseField(columnName = "type")
    private int type=1;

    @DatabaseField(columnName = "isChecked")
    private boolean isChecked = false;


    public Icon() {
    }

    public Icon(String iconName) {
        this.iconName = iconName;
    }
    public Icon(String iconName, int type) {
        this.iconName = iconName;
        this.type = type;
    }

    public Icon(String iconName, int type, boolean isChecked) {
        this.iconName = iconName;
        this.type = type;

        this.isChecked = isChecked;

    }

    public String getIconName() {
        return iconName;
    }

    public void setIconName(String iconName) {
        this.iconName = iconName;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    @Override
    public String toString() {
        return "Icon{" +
                "id=" + id +
                ", iconName='" + iconName + '\'' +
                ", type=" + type +
                ", isChecked=" + isChecked +
                '}';
    }
}
